<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码修改</title>
<link href="<%=request.getContextPath()%>/css/update-pwd.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/validate_form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/passwordStrength-min.js"></script>
</head>
<body>
	<div id="wrap">
		<div class="login">
			<h4>重新输入密码</h4>
			<form id="form1" class="form1" action="<%=request.getContextPath()%>/updatePwd" method="post">
				<input type="hidden" name="id" value="${id }" /> 
				<input type="hidden" name="checkPwdToken" id="checkPwdToken" value="${checkPwdToken }"/>
				<table style="text-align: center; table-layout: fixed; padding-left: 40px">
					<tr>
						<td><span class="span1 need"><span>*</span>输入原密码：</span></td>
						<td><input type="password" value="" name="pwd" class="txt" datatype="*5-18" errormsg="密码在5~18位！" maxlength="20" size="10" ajaxurl="<%=request.getContextPath()%>/checkPwd" /><br /></td>
						<td><div class="Validform_checktip"></div></td>
					</tr>
					<tr>
						<td><span class="span1 need"><span>*</span>输入密码：</span></td>
						<td><input type="password" name="pwd1" class="txt" datatype="*5-18" errormsg="密码在5~18位！"  maxlength="20" size="10" /><br /></td>
						<td><div class="Validform_checktip"></div></td>
					</tr>
					<tr>
						<td><span class="span1 need"><span>*</span>确认密码：</span></td>
						<td><input type="password" name="pwd2" datatype="*" recheck="pwd1" errormsg="两次输入不一致！" class="txt" maxlength="20" size="10" /><br /></td>
						<td><div class="Validform_checktip"></div></td>
					</tr>
					<tr>
						<td colspan="2" text-aign="center"><input type="submit" class="bton" value="提交" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<script type="text/javascript">
			$(function() {
				//$(".registerform").Validform();  //就这一行代码！;

				$(".form1").Validform({
					tiptype : 2
				});
			});
 			<%-- function checkPwd(pwd){
				 $.ajax({
		             type: "POST",
		             url: "<%=request.getContextPath()%>/checkPwd",
		             data: {pwd:pwd},
		             dataType: "json",
		             success: function(data){
		            	 		if(data.status=='n'){
		                            alert(data.info);
		            	 		}else{
		            	 			if(data.status=='y'){
		            	 				$("#checkPwdToken").val(data.checkPwdToken);
		            	 			}
		            	 		}
		                      }
		         });
			} --%>
		</script>
</body>
</html>
